package com.clearance.mine_clearance.entry;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tg_user")
public class TgUser {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String firstName;

    private String userName;

    private Integer isBot;

    private String tgId;

    private BigDecimal balance;

    //0是真实用户,1是机器人用户;
    private Integer type;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    private String chatInviteLinkUrl;


    //0 是必中  1是非必中
    private Integer darkLightning;

    //0是正常 1是自动发包机制
    private Integer givePayType;


    //冻结金额
    private BigDecimal frozenAmount;
}
